package com.fengycx.fallback;

import com.fengycx.feign.DriverConfirmFeeApi;
import com.fengycx.param.DriverConfirmOrderDto;
import com.fengycx.param.DriverSummeryDto;
import com.fengycx.result.R;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class DriverConfirmFeeApiFallbackFactory implements FallbackFactory<DriverConfirmFeeApi> {


    @Override
    public DriverConfirmFeeApi create(Throwable cause) {
        return new DriverConfirmFeeApi() {
            @Override
            public R<DriverSummeryDto> selectDriverSummary() {
                return null;
            }
        };
    }
}
